package com.test.object;
//同一个包中的类可以直接调用
public class testStudent {
    public static void main(String[] args) {
        Student s = new Student();
        s.name = "邓富明";
        s.age = 10;
        System.out.println("age:"+s.age);
        System.out.println("name:"+s.name);
        s.eat();
        s.study();
    }
}
